import request from "../util/request3";
// import store from "../store";

export const doLogin2 = function (user = {}) {
  return request({
    url: "/admin/user/login",
    method: "post",
    params: user,
    // 自定义标识，标识该接口不需要授权
    isPublic: true,
  });
};

export const loadTypeList = function () {
  return request({
    url: "/admin/category/list",
    method: "get",
    // headers: {
    //   authorization: store.state.token,
    // },
  });
};
